﻿//后台所有webapi调用在此定义
var backendwebapiConfig = {
    //Desc : 获取图片验证码API
    //Method:Get
    //Param: imgwith: int, imgheight:int
    getcaptcha: "/api/common/getcaptchacode",
    //Desc : 用户登录验证接口 公用
    //Method:Post
    //Param: {account: string, password: string}
    customerlogin: "/api/customer/login",
    //Desc : 后台系统菜单管理编辑页 - 获取父级菜单列表
    //Method:Get
    //Param: null
    getsystemmenusall: "/api/backend/systemmenus/list?all=true",
    //Desc : 后台系统菜单管理 - 获取当前Store下所有系统模块菜单列表
    //Method:Get
    //Param: null
    getsystemmodulelist : "/api/backend/systemmodules/list",
    //Desc : 公用接口适用于下拉框中多选获取店铺信息
    //Method:Get
    //Param: null
    getstoreselectlist: "/api/common/getstoresforselect",
    //Desc : 编辑/新增系统功能模块Api
    //Method:Post
    systemmoduleedit: "/api/backend/systemmodules/edit",
    //Desc : 在系统模块编辑时检查分配给系统模块的按钮，与已授权给各角色的系统模块的按钮是否发生改变
    //       防止分配给系统模块的按钮与授权按钮不同而引发按钮查询授权失败
    //Method:Post
    //Param: moduleId:int , assignedbtnIds: int Array
    checkassignedbuttonschangeresult: "/api/backend/systemmodules/checkassignedbtnchange",
    //Desc : 获取组织机构全量数据
    //Method:Get
    //Param: null
    loadorganizelist: "/api/backend/organize/list",
    //Desc : 获取后台管理员角色数据
    //Method:Get
    //Param: null
    loadadminroleslist: "/api/backend/customer/adminroles/list",
    //Desc : 根据角色获取角色对应的带权限的系统模块列表
    //Method:Get
    //Param: roleId: int
    getsystemmodulelistswithauthbyadminrole: "/api/backend/systemmodules/authlistbyrole",
    //Desc : 更新用户角色对应系统模块的操作权限
    //Method:Post
    //Param: buttonId: int, moduleId: int, roleId: int, authorizeList: Array of SystemModuleModel
    updatesystemmoduleauthorize: "/api/backend/systemmodules/updatemoduleauthorize",
    //Desc : 获取计划任务分页列表
    //Method:Get
    //Param: Page: int, PageSize: int
    loadscheduletaskBypage: "/api/backend/scheduletask/list",
    //Desc : 触发启动后台计划任务：启动、暂停、停止、立即执行
    //Method:Post
    //Param: moduleid: int, buttonid: int, taskid: int, action: enum
    triggerscheduletask: "/api/backend/scheduletask/triggertask",
    //Desc : 后台用户列表查询公用接口/查询注册会员或查询系统用户
    //Method:Post
    //Param: see CustomerSearchModel
    loadcustomerpagedlist: "/api/backend/customer/pagedlist",
    //Desc : 公用获取省市县联动JsonData
    //Method:Get
    //Param: null
    getareadatajson: "/api/common/area/jsondata",
    //Desc : 后台编辑用户信息接口
    //Method:Post
    //Param: see CustomerModel
    customeredit: "/api/backend/customer/edit",
    //Desc : 后台分配用户角色接口
    //Method:Post
    //Param: see CustomerModel : { Id : 1, SelectedCustomerRoleIds: [1,2...] }
    customerroleassign: "/api/backend/customer/assignrole",
    //Desc : 更新用户角色对应系统模块的操作权限
    //Method:Post
    //Param: buttonId: int, moduleId: int, customerId: int
    customerdelete: "/api/backend/customer/delete",
    //Desc : 用户编辑页 往来邮件 面板获取指定用户已发送的邮件列表
    //Method:Post
    //Param: see CustomerEmailSearchModel : CustomerId: int, Page: int, PageSize: array
    pagedemaillistbycustomer: "/api/backend/customer/pagedemaillist",
    //Desc : 用户编辑页 往来邮件 向用户发送邮件
    //Method:Post
    //Param: see QueuedEmailModel : CustomerId: int, To: email string, ToName: string
    //                              Subject: string, Body: base64Encoded string, dontsendbeforedate: DateString
    sendcustomemailtocustomer: "/api/backend/customer/sendcustomemail",
    //Desc : 在线用户分页查询接口
    //Method:Post
    //Param: page: int, pagesize: int
    loadonlinecustomerpagedlist: "/api/backend/customer/online-pagedlist",
    //Desc : 修改用户账号(手机/或登录名)时发送短信验证码
    //Method:Post
    //Param: BindAccountModel : see SendCustomVerifyCodeSMSApi for Model Info
    sendchangaccountverifycodeSMS: "/api/customer/changeaccount/sms/sendverifycode",
    //Desc : 修改用户账号(邮箱)时发送邮箱验证码
    //参见 sendchangaccountverifycodeSMS
    sendchangaccountverifycodeEmail: "/api/customer/changeaccount/email/sendverifycode",
    //Desc : 修改用户登录账号
    //Method:Post
    //Param: BindAccountModel : see SendCustomVerifyCodeSMSApi for Model Info
    customerchangaccount: "/api/customer/changeaccount",
    //公用图片等资源文件上传API URL
    commonuploadapi: "/api/common/zyupload/upload",
    //Desc : 后台获取分类导航菜单公用接口
    //Method:Post
    //Param: see NaviMenuSearchModel
    loadpagednavimenu: "/api/backend/navimenu/pagedlist"
};

//后台窗口编辑页Url
var bakcendviewConfig = {
    //后台系统模块管理编辑页
    systemmoduleeditview: "/backend/systemmanage/systemmodule/edit",
    //后台用户管理编辑页
    customereditview: "/backend/customermange/customer/edit",
    //后台用户管理页-用户角色分配弹窗页
    customerassignroleview: "/backend/customermange/customer/assignrole",
    //后台用户资料页-用户修改账号绑定弹窗页 
    customerchangeaccountview: "/backend/customermange/customer/changeaccount",
    //文章/新闻模块导航菜单详情编辑弹窗页
    articlecolumndetaileditview: "/backend/articlesmanage/navimenu/edit",
};